package com.yang.leather.common.upload;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.yang.leather.admin.pojo.ImgsDel;

public interface IUploadService {
	public static final String FILE_SIZE_ERROR = "file_size_error";
	public static final String APPLICATION_ERROR = "app_error";
	public static final String FILE_ISNULL = "file_isnull";
	public static final String ARGUMENT_INVALID = "arg_invalid";
	public static final String NO_RULE_ID = "no_rule_id";
	public static final String NO_IMG_TYPE = "no_img_type";
	public static final String NOT_IMAGE = "not_image";
	public static final String NOT_SUPPORT_IMG_EXT = "not_support_img_ext";
	
	public String uploadByType(HttpServletRequest request,String fileFileName,String uploadRuleId,String uploadType) throws UploadException;
	
	//上传商品图片
	public String uploadProduct(HttpServletRequest request,String fileFileName,String uploadRuleId) throws UploadException;
	
	
	public String deleteFile(List<ImgsDel> lstImgsDel);
}
